import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/Home'
// 首页
import Index from '@/components/views/Index'
// 测试页面
import Test from '@/components/views/Test'
// 图表
import Charts from '@/components/views/Charts'
import Linecharts from '@/components/views/charts/Linecharts'
import Funnel from '@/components/views/charts/Funnel'
import Gauge from '@/components/views/charts/Gauge'
// 表格
import Table from '@/components/views/Table'
// icons
import Icon from '@/components/views/Icon'
import EleIcons from '@/components/views/icons/EleIcons'
import OtherIcons from '@/components/views/icons/OtherIcons'

import Login from '@/components/Login'

Vue.use(Router)

export default new Router({
	routes: [{
		path: '/',
		name: '首页',
		component: Home,
		children: [{
			path: 'index',
			name: '首页',
			component: Index
		}, {
			path: 'test',
			name: '测试',
			component: Test
		}, {
			path: 'charts',
			name: '图表',
			component: Charts,
			children: [{
				path: 'linecharts',
				name: '线性图表',
				component: Linecharts
			}, {
				path: 'funnel',
				name: '漏斗图表',
				component: Funnel
			}, {
				path: 'gauge',
				name: '仪表盘',
				component: Gauge
			}]
		}, {
			path: 'table',
			name: '表格',
			component: Table
		}, {
			path: 'icon',
			name: '字符',
			component: Icon,
			children: [{
				path: 'ele_icons',
				name: '饿了么UI icons',
				component: EleIcons
			}, {
				path: 'other_icons',
				name: '其他icons',
				component: OtherIcons
			}]
		}]
	}, {
		path: '/login',
		name: 'Login',
		component: Login
	}]
})